package com.springclouddemo.demo.Controllers;

import com.springclouddemo.demo.FeignInterface.Dcclient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign")
public class FeignController {

    @Autowired
    private Dcclient dcclient;
    @RequestMapping("/consume")
    public String consumeInfeign(){
        System.out.println("aaa");
        return dcclient.cosumeFeign();
    }
}
